<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            margin: 0;
        }
        #wrap {
            margin: 20vh auto;
            width: 260px;
            height: 50vh;
            border: 1px solid #000;
            overflow: hidden;
        }
        #list {
            margin: 0;
            padding: 10px 5px;
            list-style: none;
            font: 16px/2 "宋体";
        }
        #list li {
            border-bottom:1px solid #000;
        }
    </style>
</head>
<body>
    <div id="wrap">
        <ul class="list">

        </ul>
    </div>

    <script>
        let list = document.querySelector('.list')
        let q = [...('.'.repeat(100))].map((item,index) => {
             return `<li>这是第${index}item</li>`
        }).join(" ")
        list.innerHTML = q
        let y0
        list.addEventListener('touchstart',(e) => {
            y0 = e.touches[0].clientY
            list.addEventListener('touchmove',move)
        })
        const move = (e) => {
         let y = e.touches[0].clientY - y0
         list.style.transform = `translateY(${y}px)`
        }
    </script>
</body>
</html>